<template>
	<view class="template-index tn-safe-area-inset-bottom">
		<!-- 顶部自定义导航 -->
		<tn-nav-bar fixed alpha :isBack="false" :bottomShadow="false">
			<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
				<!-- 图标logo -->
				<view class="custom-nav__back" @click="tn('/homePages/about')">
					<view class="logo-pic tn-shadow-blur" style="background-image:url('https://resource.tuniaokj.com/images/logo/logo2.png')">
						<view class="logo-image">
						</view>
					</view>
					<!-- <view class="tn-icon-left"></view> -->
				</view>
				<!-- 搜索框 -->
				<view class="custom-nav__search tn-flex tn-flex-col-center tn-flex-row-center" @click="tn('/homePages/search')">
					<view class="custom-nav__search__box tn-flex tn-flex-col-center tn-flex-row-left" style="background-color: rgba(230,230,230,0.3);">
						<view class="custom-nav__search__icon tn-icon-search tn-color-white"></view>
						<view class="custom-nav__search__text tn-padding-left-xs tn-color-white">搜索 碳足迹</view>
					</view>
				</view>
			</view>
		</tn-nav-bar>

		<swiper class="card-swiper" @click="tn('/homePages/navigation')" :circular="true"
						:autoplay="true" duration="500" interval="8000" @change="cardSwiper">
			<swiper-item v-for="(item,index) in swiperList" :key="index" :class="cardCur==index?'cur':''">
				<view class="swiper-item image-banner">
					<image :src="item.url" mode="aspectFill" v-if="item.type=='image'"></image>
				</view>
				<view class="swiper-item-text">
					<view class="tn-text-bold tn-color-white" style="font-size: 90rpx;">{{item.title}}</view>
					<view class="tn-color-white tn-padding-top" style="font-size: 30rpx;">{{item.name}}</view>
					<view class="tn-text-sm tn-text-bold tn-color-white tn-padding-top-sm tn-padding-bottom-sm">{{item.text}}</view>
				</view>
			</swiper-item>
		</swiper>
		<view class="indication">
			<block v-for="(item,index) in swiperList" :key="index">
				<view class="spot" :class="cardCur==index?'active':''"></view>
			</block>
		</view>


		<!-- 方式12 start-->
		<view v-if="isAndroid" class="tn-flex tn-margin-xs tn-padding-top-sm">
			<view class="tn-flex-1 tn-padding-sm tn-margin-xs tn-radius" @click="tn('/homePages/hot')">
				<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
					<view class="icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur tn-main-gradient-purplered--light tn-color-purplered">
						<view class="tn-icon-fire-fill tn-three"></view>
					</view>
					<view class="tn-color-black tn-text-center">
						<text class="tn-text-ellipsis">绿色运动</text>
					</view>
				</view>
			</view>
			<view class="tn-flex-1 tn-padding-sm tn-margin-xs tn-radius" @click="tn('/circlePages/business')">
				<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
					<view class="icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur tn-main-gradient-purple--light tn-color-purple">
						<view class="tn-icon-identity-fill tn-three"></view>
					</view>
					<view class="tn-color-black tn-text-center">
						<text class="tn-text-ellipsis">智能名片</text>
					</view>
				</view>
			</view>
		</view>
		<!-- 方式12 end-->

		<!-- 方式12 start-->
		<view v-else class="tn-flex tn-margin-xs tn-padding-top-sm">
			<view class="tn-flex-1 tn-padding-sm tn-margin-xs tn-radius" @click="tn('/homePages/hot')">
				<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
					<view class="icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur tn-main-gradient-purplered--light tn-color-purplered">
						<view class="tn-icon-fire-fill"></view>
					</view>
					<view class="tn-color-black tn-text-center">
						<text class="tn-text-ellipsis">绿色运动</text>
					</view>
				</view>
			</view>

			<view class="tn-flex-1 tn-padding-sm tn-margin-xs tn-radius" @click="tn('/circlePages/business')">
				<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
					<view class="icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur tn-main-gradient-purple--light tn-color-purple">
						<view class="tn-icon-identity-fill"></view>
					</view>
					<view class="tn-color-black tn-text-center">
						<text class="tn-text-ellipsis">智能名片</text>
					</view>
				</view>
			</view>

		</view>
		<!-- 方式12 end-->

		<!-- banner start-->
		<view class="tn-flex tn-flex-wrap tn-padding-xs" @click="tn('/circlePages/advertise')">
			<view class="" style="width: 100%;">
				<view class="image-piccapsule tn-shadow-blur" style="background-image:url('https://gulimall-chengke123.oss-cn-zhangjiakou.aliyuncs.com/banner-tnmb.png');">
					<view class="image-capsule">
					</view>
				</view>
			</view>
		</view>
		<!-- banner end-->


		<view class="tn-flex tn-flex-row-between tn-margin-top" @click="tn('/circlePages/business')">
			<view class="justify-content-item tn-margin tn-text-bold tn-text-xxl">
				活跃人群
			</view>
			<view class="justify-content-item tn-margin tn-text-lg tn-color-grey">
				<text class="tn-padding-xs">全部</text>
				<text class="tn-icon-topics"></text>
			</view>
		</view>

		<swiper class="card-swiper2 tn-margin-top-sm" :circular="true"
						:autoplay="false" duration="500" interval="5000" @change="resume">
			<swiper-item v-for="(item,index) in resumeList" :key="index" :class="cardCur2==index?'cur':''" @click="tn('/circlePages/king')">
				<view class="swiper-item1 image-banner tn-shadow-blur" :style="'background-image:url('+ randomBackurl + ');width: 660rpx;height: 100%;background-size: cover;border-radius: 15rpx;'">
				</view>
				<view class="swiper-item2 image-banner tn-shadow-blur" :style="'background-image:url('+ item.avatar +');width: 120rpx;height: 120rpx;background-size: cover;'">
				</view>
				<view class="swiper-item-text tn-text-shadow-indigo">
					<view class="tn-text-bold tn-color-blue--dark" style="font-size: 45rpx;">{{item.nickname}}</view>
					<view v-if="item.tagNames && item.tagNames.length > 0">
						<view v-for="tagName in item.tagNames" :key="tagName" class="tn-color-blue--dark tn-padding-top-sm">{{tagName}}</view>
					</view>
					<view class="tn-flex tn-padding-top-xl" style="margin-left: -50rpx;">
						<view class="tn-flex-1 tn-padding-sm tn-margin-right">
							<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
								<view class="">
									<view class="tn-text-xxl tn-color-blue">{{item.experience}}</view>
								</view>
								<view class="tn-margin-top-xs tn-color-grey tn-text-df tn-text-center">
									<text class="tn-icon-fire"></text>
									<text class="tn-padding-left-xs">能量</text>
								</view>
							</view>
						</view>
						<view class="tn-flex-1 tn-padding-sm tn-margin-left tn-margin-right">
							<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
								<view class="">
									<view class="tn-text-xxl tn-color-orange">{{item.point}}</view>
								</view>
								<view class="tn-margin-top-xs tn-color-grey tn-text-df tn-text-center">
									<text class="tn-icon-share-circle"></text>
									<text class="tn-padding-left-xs">炭币</text>
								</view>
							</view>
						</view>
						<view class="tn-flex-1 tn-padding-sm tn-margin-left">
							<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
								<view class="">
									<view class="tn-text-xxl tn-color-red">{{item.levelName}}</view>
								</view>
								<view class="tn-margin-top-xs tn-color-grey tn-text-df tn-text-center">
									<text class="tn-icon-like"></text>
									<text class="tn-padding-left-xs">等级</text>
								</view>
							</view>
						</view>
					</view>
				</view>
			</swiper-item>
		</swiper>



		<view class="">



			<view class="tn-flex tn-flex-row-between tn-margin-top">
				<view class="justify-content-item tn-margin tn-text-bold tn-text-xxl">
					获币小知识
				</view>
			</view>

			<view class="tn-info__container tn-flex tn-flex-wrap tn-flex-col-center tn-flex-row-between tn-margin-left tn-margin-right">
				<block v-for="(item, index) in tuniaoData" :key="index">
					<view class="tn-info__item tn-flex tn-flex-direction-row tn-flex-col-center tn-flex-row-between tn-color-white tn-shadow-blur" :style="'background-color:'+ item.color +';'" @click="tnNavigate(index)">
						<view class="tn-info__item__left tn-flex tn-flex-direction-row tn-flex-col-center tn-flex-row-left">
							<view class="tn-info__item__left__content">
								<view class="tn-info__item__left__content--title tn-text-bold" style="font-size: 38rpx;">{{ item.title }}</view>
								<view class="tn-info__item__left__content--data tn-padding-top-xs">
									{{ item.value }}
									<text class="tn-icon-right tn-padding-left-xs"></text>
								</view>
							</view>
						</view>
						<view class="tn-info__item__right">
							<view class="tn-info__item__right--icon">
								<view :class="[`tn-icon-${item.icon}`]"></view>
							</view>
						</view>
						<view class="tn-info__item__bottom">
							<view class='name tn-text-sm tn-color-gray' style="margin-left: -10rpx;">
								<text class="tn-icon-code tn-padding-right-xs" style="opacity: 0;"></text>
							</view>
						</view>
					</view>
				</block>
			</view>

		</view>

		<view class='tn-tabbar-height'></view>

	</view>
</template>

<script>
import {getUserByLevelDesc} from "../../api/user";

export default {
	name: 'Index',
	data(){
		return {
			backurl: '',
			queryParams: {
				pageNo: 1,
				pageSize: 5,
			},
			cardCur: 0,
			isAndroid: true,
			swiperList: [{
				id: 0,
				type: 'image',
				title: '',
				name: '',
				text: '',
				url: 'https://img2.baidu.com/it/u=418798226,1847520432&fm=253&fmt=auto&app=120&f=JPEG?w=510&h=292',
			}, {
				id: 1,
				type: 'image',
				title: '',
				name: '',
				text: '',
				url: 'https://f.sinaimg.cn/sinakd10109/382/w1854h928/20220511/e839-5ef79803efcd4cc1d499be90e07e928d.png',
			}, {
				id: 2,
				type: 'image',
				title: '',
				name: '',
				text: '',
				url: 'https://learnenergy.tw/upload/knowledge/images/CO2.jpg',
			}, {
				id: 3,
				type: 'image',
				title: '',
				name: '',
				text: '',
				url: 'https://img95.699pic.com/xsj/29/m5/te.jpg%21/fh/300',
			}, {
				id: 4,
				type: 'image',
				title: '',
				name: '',
				text: '',
				url: 'https://p1.itc.cn/q_70/images03/20220226/997244df70984352be243226071bc9df.jpeg',
			},{
				id: 5,
				type: 'image',
				title: '',
				name: '',
				text: '',
				url: 'https://img1.baidu.com/it/u=1710966328,2836031544&fm=253&fmt=auto&app=138&f=PNG?w=1072&h=500',
			}],
			cardCur2: 0,
			resumeList: [{
				id: 0,
				type: 'image',
				nickname: '徐圆圆',
				title: '绿色出行达人',
				hot: '1.29W',
				share: '216',
				love: '962',
				avatar: 'https://resource.tuniaokj.com/images/blogger/blogger_beibei.jpg',
				url: 'https://resource.tuniaokj.com/images/resume/resume-bg.jpg',
			}],
			resumeBackList:['https://resource.tuniaokj.com/images/resume/resume-bg.jpg',
			'https://resource.tuniaokj.com/images/resume/resume-bg2.jpg',
			'https://resource.tuniaokj.com/images/resume/resume-bg.jpg',
			'https://resource.tuniaokj.com/images/resume/resume-bg2.jpg',
			'https://resource.tuniaokj.com/images/resume/resume-bg.jpg'],
			tuniaoData: [
				{
					title: '绿色出行',
					icon: 'image-text-fill',
					color: '#197a0d',
					value: '前往咨询'
				},
				{
					title: '低碳生活',
					icon: 'data-fill',
					color: '#FFC32E',
					value: '前往咨询'
				},
				{
					title: '绿色回收',
					icon: 'statistics-fill',
					color: '#954FF6',
					value: '前往咨询'
				},
				{
					title: '节能省电',
					icon: 'bankcard-fill',
					color: '#5177EE',
					value: '前往咨询'
				}
			],
		}
	},
	computed: {
		randomBackurl() {
			const randomIndex = Math.floor(Math.random() * this.resumeBackList.length);
			return this.resumeBackList[randomIndex];
		}
	},
	created() {
		const systemInfo = uni.getSystemInfoSync()
		if (systemInfo.system.toLocaleLowerCase().includes('ios')) {
			this.isAndroid = false
		} else {
			this.isAndroid = true
		}
		this.getUserByLevelDesc();
	},
	methods: {
		tnNavigate(index) {
			// 根据不同的index值执行不同的跳转逻辑
			switch (index) {
				case 0:
					this.tn('/homePages/profession');
					break;
				case 1:
					this.tn('/homePages/life');
					break;
					// 添加其他index的情况
				case 2:
					this.tn('/homePages/recovery');
					break;
					// 添加其他index的情况
				case 3:
					this.tn('/homePages/energy');
					break;
				default:
					this.tn('/homePages/profession');
			}
		},
		getUserByLevelDesc(){
			getUserByLevelDesc(this.queryParams).then(res =>{
				if(res.code !== 0) {
					this.$refs.toast.show({
						content: res.msg,
						icon: 'close-circle',
						image: '',
						duration: 1500
					})
					return
				}
				this.resumeList = res.data.list
			})
		},
		// cardSwiper
		cardSwiper(e) {
			this.cardCur = e.detail.current
		},
		// resume
		resume(e) {
			this.cardCur2 = e.detail.current
		},
		// 跳转
		tn(e) {
			uni.navigateTo({
				url: e,
			});
		},
	}
}
</script>

<style lang="scss" scoped>
.template-index{
	max-height: 100vh;
}
.tn-tabbar-height {
	min-height: 100rpx;
	height: calc(120rpx + env(safe-area-inset-bottom) / 2);
}


/* 轮播视觉差 start */
.card-swiper {
	height: 540rpx !important;
}

.card-swiper swiper-item {
	width: 750rpx !important;
	left: 0rpx;
	box-sizing: border-box;
	// padding: 0rpx 30rpx 90rpx 30rpx;
	overflow: initial;
}

.card-swiper swiper-item .swiper-item {
	width: 100%;
	display: block;
	height: 100%;
	transform: scale(1);
	transition: all 0.2s ease-in 0s;
	will-change: transform;
	overflow: hidden;
}

.card-swiper swiper-item.cur .swiper-item {
	transform: none;
	transition: all 0.2s ease-in 0s;
	will-change: transform;
}

.card-swiper swiper-item .swiper-item-text {
	margin-top: -320rpx;
	text-align: center;
	width: 100%;
	display: block;
	height: 50%;
	border-radius: 10rpx;
	transform: translate(100rpx, 0rpx) scale(0.9, 0.9);
	transition: all 0.6s ease 0s;
	will-change: transform;
	overflow: hidden;
}

.card-swiper swiper-item.cur .swiper-item-text {
	margin-top: -320rpx;
	width: 100%;
	transform: translate(0rpx, 0rpx) scale(0.9, 0.9);
	transition: all 0.6s ease 0s;
	will-change: transform;
}

.image-banner{
	display: flex;
	align-items: center;
	justify-content: center;
}
.image-banner image{
	width: 100%;
	height: 100%;
}

/* 轮播指示点 start*/
.indication{
	z-index: 9999;
	width: 100%;
	height: 36rpx;
	position: absolute;
	display:flex;
	flex-direction:row;
	align-items:center;
	justify-content:center;
}

.spot{
	background-color: #FFFFFF;
	opacity: 0.6;
	width: 10rpx;
	height: 10rpx;
	border-radius: 20rpx;
	top: -60rpx;
	margin: 0 8rpx !important;
	position: relative;
}

.spot.active{
	opacity: 1;
	width: 30rpx;
	background-color: #FFFFFF;
}

/* 简历推荐 start */
.card-swiper2 {
	height: 420rpx !important;
	overflow: hidden;
}

.card-swiper2 swiper-item {
	width: 680rpx !important;
	left: 30rpx;
	box-sizing: border-box;
	overflow: initial;
	padding: 0 0rpx 40rpx 0;
}

.card-swiper2 swiper-item .swiper-item1 {
	width: 100%;
	display: block;
	height: 100%;
	transform: scale(0.97);
	transition: all 0.2s ease-in 0s;
	will-change: transform;
	background-color: #E7FAFE;
}

.card-swiper2 swiper-item.cur .swiper-item1 {
	transform: none;
	transition: all 0.2s ease-in 0s;
	will-change: transform;
}

.card-swiper2 swiper-item .swiper-item2 {
	margin-top: -180rpx;
	width: 100%;
	display: block;
	height: 50%;
	border-radius: 50%;
	transform: translate(510rpx, -160rpx) scale(0.9, 0.9);
	transition: all 0.3s ease 0s;
	will-change: transform;
}

.card-swiper2 swiper-item.cur .swiper-item2 {
	margin-top: -180rpx;
	width: 100%;
	transform: translate(510rpx, -150rpx) scale(0.9, 0.9);
	transition: all 0.3s ease 0s;
	will-change: transform;
}

.card-swiper2 swiper-item .swiper-item-text {
	margin-top: -270rpx;
	width: 100%;
	display: block;
	height: 100%;
	border-radius: 10rpx;
	transform: translate(30rpx, -20rpx) scale(0.8, 0.8);
	transition: all 0.6s ease 0s;
	will-change: transform;
	overflow: hidden;
}

.card-swiper2 swiper-item.cur .swiper-item-text {
	margin-top: -270rpx;
	width: 100%;
	transform: translate(20rpx, 0rpx) scale(0.9, 0.9);
	transition: all 0.6s ease 0s;
	will-change: transform;
}



/* 底部tabbar假阴影 start*/
.bg-tabbar-shadow{
	background-image: repeating-linear-gradient(to top, rgba(0,0,0,0.1) 10rpx, #FFFFFF , #FFFFFF);
	position: fixed;
	bottom: 0;
	height: 450rpx;
	width: 100vw;
	z-index: -1;
}

/* 图标容器12 start */
.tn-three{
	position: absolute;
	top: 50%;
	right: 50%;
	bottom: 50%;
	left: 50%;
	transform: translate(-38rpx, -20rpx) rotateX(20deg) rotateY(10deg) rotateZ(-20deg);
	text-shadow: -1rpx 2rpx 0 #f0f0f0, -2rpx 4rpx 0 #f0f0f0, -10rpx 20rpx 30rpx rgba(0, 0, 0, 0.2);
}
.icon12 {
	&__item {
		width: 30%;
		background-color: #FFFFFF;
		border-radius: 10rpx;
		padding: 30rpx;
		margin: 20rpx 10rpx;
		transform: scale(1);
		transition: transform 0.3s linear;
		transform-origin: center center;

		&--icon {
			width: 100rpx;
			height: 100rpx;
			font-size: 60rpx;
			border-radius: 50%;
			margin-bottom: 18rpx;
			position: relative;
			z-index: 1;

			&::after {
				content: " ";
				position: absolute;
				z-index: -1;
				width: 100%;
				height: 100%;
				left: 0;
				bottom: 0;
				border-radius: inherit;
				opacity: 1;
				transform: scale(1, 1);
				background-size: 100% 100%;
				background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/icon_bg6.png);


			}
		}
	}
}

/* 自定义导航栏内容 start */
.custom-nav {
	height: 100%;

	&__back {
		margin: auto 5rpx;
		font-size: 40rpx;
		margin-right: 10rpx;
		margin-left: 30rpx;
		flex-basis: 5%;
	}

	&__search {
		flex-basis: 60%;
		width: 100%;
		height: 100%;

		&__box {
			width: 100%;
			height: 70%;
			padding: 10rpx 0;
			margin: 0 30rpx;
			border-radius: 60rpx 60rpx 0 60rpx;
			font-size: 24rpx;
		}

		&__icon {
			padding-right: 10rpx;
			margin-left: 20rpx;
			font-size: 30rpx;
		}

		&__text {
			// color: #AAAAAA;
		}
	}
}
.logo-image{
	width: 65rpx;
	height: 65rpx;
	position: relative;
}
.logo-pic{
	background-size: cover;
	background-repeat:no-repeat;
	// background-attachment:fixed;
	background-position:top;
	border-radius: 50%;
}
/* 自定义导航栏内容 end */


/* 热门图片 start*/
.image-tuniao1{
	padding: 165rpx 0rpx;
	font-size: 40rpx;
	font-weight: 300;
	position: relative;
}
.image-tuniao2{
	padding: 75rpx 0rpx;
	font-size: 40rpx;
	font-weight: 300;
	position: relative;
}
.image-tuniao3{
	padding: 90rpx 0rpx;
	font-size: 40rpx;
	font-weight: 300;
	position: relative;
}
.image-pic{
	background-size: cover;
	background-repeat:no-repeat;
	// background-attachment:fixed;
	background-position:top;
	border-radius: 10rpx;
}
/* 胶囊banner*/
.image-capsule{
	padding: 100rpx 0rpx;
	font-size: 40rpx;
	font-weight: 300;
	position: relative;
}
.image-piccapsule{
	background-size: cover;
	background-repeat:no-repeat;
	// background-attachment:fixed;
	background-position:top;
	border-radius: 20rpx 20rpx 0 0;
}

/* 标题 start */
.nav_title {
	-webkit-background-clip: text;
	color: transparent;

	&--wrap {
		position: relative;
		display: flex;
		height: 120rpx;
		font-size: 46rpx;
		align-items: center;
		justify-content: center;
		font-weight: bold;
		background-image: url(https://resource.tuniaokj.com/images/title_bg/title00.png);
		background-size: cover;
	}
}
/* 标题 end */

/* 业务展示 start */
.tn-info {

	&__container {
		margin-top: 10rpx;
		margin-bottom: 50rpx;
	}

	&__item {
		width: 47.7%;
		margin: 15rpx 0rpx 30rpx 0rpx;
		padding: 40rpx 30rpx;
		border-radius: 10rpx;


		position: relative;
		z-index: 1;

		&::after {
			content: " ";
			position: absolute;
			z-index: -1;
			width: 100%;
			height: 100%;
			left: 0;
			bottom: 0;
			border-radius: inherit;
			opacity: 1;
			transform: scale(1, 1);
			background-size: 100% 100%;
			background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/2.png);
		}

		&__left {

			&--icon {
				width: 80rpx;
				height: 80rpx;
				border-radius: 50%;
				font-size: 40rpx;
				margin-right: 20rpx;
				position: relative;
				z-index: 1;

				&::after {
					content: " ";
					position: absolute;
					z-index: -1;
					width: 100%;
					height: 100%;
					left: 0;
					bottom: 0;
					border-radius: inherit;
					opacity: 1;
					transform: scale(1, 1);
					background-size: 100% 100%;
					background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/icon_bg5.png);
				}
			}

			&__content {
				font-size: 25rpx;

				&--data {
					color: rgba(255,255,255,0.5);
					margin-top: 5rpx;
					// font-weight: bold;
				}
			}
		}

		&__right {
			&--icon {
				position: absolute;
				right: 0rpx;
				top: 50rpx;
				font-size: 100rpx;
				width: 108rpx;
				height: 108rpx;
				text-align: center;
				line-height: 60rpx;
				opacity: 0.15;
			}
		}
		&__bottom {
			box-shadow: 0rpx 0rpx 30rpx 0rpx rgba(0, 0, 0, 0.12);
			border-radius: 0 0 10rpx 10rpx;
			position: absolute;
			width: 85%;
			line-height: 15rpx;
			left: 50%;
			bottom: -15rpx;
			transform: translateX(-50%);
			z-index: -1;
			text-align: center;
		}
	}
}
/* 业务展示 end */

/* 底部tabbar start*/
.footerfixed{
	position: fixed;
	width: 100%;
	bottom: 0;
	z-index: 999;
	background-color: #FFFFFF;
	box-shadow: 0rpx 0rpx 30rpx 0rpx rgba(0, 0, 0, 0.07);
}

.tabbar {
	display: flex;
	align-items: center;
	min-height: 110rpx;
	justify-content: space-between;
	padding: 0;
	height: calc(110rpx + env(safe-area-inset-bottom) / 2);
	padding-bottom: calc(env(safe-area-inset-bottom) / 2);
}

.tabbar .action {
	font-size: 22rpx;
	position: relative;
	flex: 1;
	text-align: center;
	padding: 0;
	display: block;
	height: auto;
	line-height: 1;
	margin: 0;
	overflow: initial;
}

.bar-center{
	animation: suspension 3s ease-in-out infinite;
}

@keyframes suspension {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-0.8rem);
	}
}

.tabbar .action .bar-icon {
	width: 100rpx;
	position: relative;
	display: block;
	height: auto;
	margin: 0 auto 10rpx;
	text-align: center;
	font-size: 42rpx;
	// line-height: 50rpx;
}

.tabbar .action .bar-icon image {
	width: 50rpx;
	height: 50rpx;
	display: inline-block;
}

.tabbar .action .bar-circle {
	position: relative;
	display: block;
	margin: 0rpx auto 0rpx;
	text-align: center;
	font-size: 52rpx;
	line-height: 90rpx;
	// background-color: #01BEFF;
	width: 100rpx !important;
	height: 100rpx !important;
	overflow: hidden;
	// border-radius: 50%;
	// box-shadow: 0px 10px 30px rgba(70,23,129, 0.12),
	//   0px -8px 40px rgba(255, 255, 255, 1),
	//   inset 0px -10px 10px rgba(70,23,129, 0.05),
	//   inset 0px 10px 20px rgba(255, 255, 255, 1);
	// box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(1, 190, 255, 0.5);
}

.tabbar .action .bar-circle image {
	width: 100rpx;
	height: 100rpx;
	display: inline-block;
	margin: 0rpx auto 0rpx;
}

/* 流星+悬浮 */
.nav-index-button {
	animation: suspension 3s ease-in-out infinite;
	z-index: 999999;


	&__content {
		position: absolute;
		width: 100rpx;
		height: 100rpx;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);

		&--icon {
			width: 100rpx;
			height: 100rpx;
			font-size: 60rpx;
			border-radius: 50%;
			margin-bottom: 18rpx;
			position: relative;
			z-index: 1;
			transform: scale(0.85);

			&::after {
				content: " ";
				position: absolute;
				z-index: -1;
				width: 100%;
				height: 100%;
				left: 0;
				bottom: 0;
				border-radius: inherit;
				opacity: 1;
				transform: scale(1, 1);
				background-size: 100% 100%;
				// background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/icon_bg6.png);
			}
		}
	}

	&__meteor {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 100rpx;
		height: 100rpx;
		transform-style: preserve-3d;
		transform: translate(-50%, -50%) rotateY(75deg) rotateZ(10deg);

		&__wrapper {
			width: 100rpx;
			height: 100rpx;
			transform-style: preserve-3d;
			animation: spin 20s linear infinite;
		}

		&__item {
			position: absolute;
			width: 100rpx;
			height: 100rpx;
			border-radius: 1000rpx;
			left: 0;
			top: 0;

			&--pic {
				display: block;
				width: 100%;
				height: 100%;
				background: url(https://resource.tuniaokj.com/images/cool_bg_image/arc1.png) no-repeat center center;
				background-size: 100% 100%;
				animation: arc 4s linear infinite;
			}
		}
	}
}


@keyframes suspension {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-0.6rem);
	}
}

@keyframes spin {
	0% {
		transform: rotateX(0deg);
	}

	100% {
		transform: rotateX(-360deg);
	}
}

@keyframes arc {
	to {
		transform: rotate(360deg);
	}
}

</style>
